package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class TrimSpecification {

    private int beginIndex;
    private int endIndex;
    private boolean leading;
    private boolean trailing;
    private boolean both;

    public TrimSpecification(int beginIndex,
                             int endIndex,
                             boolean leading,
                             boolean trailing,
                             boolean both) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.leading = leading;
        this.trailing = trailing;
        this.both = both;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public boolean isLeading() {
        return leading;
    }

    public boolean isTrailing() {
        return trailing;
    }

    public boolean isBoth() {
        return both;
    }

}
